package nl.infodation.emr.pricingservice.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;


@Entity
@Table(name="domainlist_setting")
public class DomainListSetting {
	@Id
	@Column(name="setting_id", nullable=false)
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer settingId;
	
	@Column(name="cl_choise")
	private int choise;
	
	@ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.MERGE)
	@LazyCollection(LazyCollectionOption.EXTRA)
	@JoinColumn(name="user_name")
	private User user;
	
	@Column(name="cl_ruleId")
	private int ruleId;
	//
	@Column(name="cl_ruleName")
	private int ruleName;
	
	@Column(name="cl_description")
	private int description;
	
	@Column(name="cl_busLine")
	private int busLine;
	
	@Column(name="cl_country")
	private int country;
	
	@Column(name="cl_beginDate")
	private int beginDate;
	
	@Column(name="cl_endate")
	private int endDate;

	@Column(name="default_setting")
	private Boolean isDefault;
	
	public Boolean getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}

	public Integer getSettingId() {
		return settingId;
	}

	public void setSettingId(Integer settingId) {
		this.settingId = settingId;
	}

	public int getChoise() {
		return choise;
	}

	public void setChoise(int choise) {
		this.choise = choise;
	}

	

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getRuleId() {
		return ruleId;
	}

	public void setRuleId(int ruleId) {
		this.ruleId = ruleId;
	}

	public int getRuleName() {
		return ruleName;
	}

	public void setRuleName(int ruleName) {
		this.ruleName = ruleName;
	}

	public int getDescription() {
		return description;
	}

	public void setDescription(int description) {
		this.description = description;
	}

	public int getBusLine() {
		return busLine;
	}

	public void setBusLine(int busLine) {
		this.busLine = busLine;
	}

	public int getCountry() {
		return country;
	}

	public void setCountry(int country) {
		this.country = country;
	}

	public int getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(int beginDate) {
		this.beginDate = beginDate;
	}

	public int getEndDate() {
		return endDate;
	}

	public void setEndDate(int endDate) {
		this.endDate = endDate;
	}
	
	
}
